package com.moonshine.parser.finder;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

public class ClassInfoCache {

	private final Map<String, File> mFilePathCache = new HashMap<String, File>();
	private final Map<String, String> mQualifedNameCache = new HashMap<String, String>();;

	public void addFilePathCache(String packageName, String className,
			File filePath) {
		mFilePathCache.put(packageName + "::" + className, filePath);
	}

	public File getFilePathCache(String packageName, String className) {
		return mFilePathCache.get(packageName + "::" + className);
	}

	public String getQualifedNameCache(String filePath) {
		// TODO Auto-generated method stub
		return mQualifedNameCache.get(filePath);
	}

	public String addQualifedNameCache(String filePath, String qualifedName) {
		// TODO Auto-generated method stub
		return mQualifedNameCache.put(filePath, qualifedName);
	}

}
